<template>
    <div class="positionBox">
        <Dashboard v-if="fullShow"></Dashboard>
        <Welcome v-else-if="$store.getters.type != 4"></Welcome>
    </div>
</template>

<script>
    import Dashboard from 'src/views/dashboard/plan-a/index.vue'
    import Welcome from "./components/Welcome.vue";
    export default {
        name: "dashboard",
        components: {Welcome,Dashboard},
           computed:{
               fullShow(){
                   if(this.$store.state.user.btnPermissions && this.$store.state.user.btnPermissions.length > 0){
                       if (this.$store.state.user.btnPermissions.indexOf("dashboard:full:show") !=-1) {
                           return true
                       }
                   }
                   return false
               }
           },
        mounted(){

        },
        methods:{

        }
    }
</script>

<style scoped lang="scss">
    .positionBox{
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
    }
</style>